﻿@model IEnumerable<TCM.Registration>

@{
    ViewBag.Title = "Index";
}



<div class="IndexBack">
    @Html.ActionLink(" ", "../")
</div>

<h2>Index</h2>

<div class="toolbar">
        @Html.ActionLink("Create New", "Create")
</div>
<br />

  <table class="grdTable" >
      <thead>
    <tr>     
        <th>
            Registration ID
        </th>
            <th>
                @Html.DisplayNameFor(model => model.Student.Name)
            </th>
        <th>
            Subject

        </th>
            <th>
              Total Fee        

            </th>
           
            

            <th></th>
        </tr>
    </thead>

    <tbody>

        @foreach (var item in Model)
        {

            <tr>
                
                 
                <td>
                     @Html.DisplayFor(modelItem => item.RegistrationID)
                    </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Student.Name)
                </td>

                <td>
                    @Html.DisplayFor(modelItem => item.Subject.Name)
                </td>
                 <td>
                    @Html.DisplayFor(modelItem => item.TotalFee)
                </td>
                

                <td>
                   @Html.ActionLink("Details", "Details", new { id = item.RegistrationID }) |
                      @Html.ActionLink("Canel", "Delete", new { id = item.RegistrationID })
                </td>
            </tr>
        }
    </tbody>
</table>


